package com.example.service;

import com.example.dao.OrderDao;
import com.example.domain.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Repository;

@Repository
public class OrderService {
    @Autowired
    private OrderDao orderDao;

    public void save(Order order) {
        orderDao.save1(order);
    }

    public Order read(String id) {
        return orderDao.read(id);
    }
}
